/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Utils;

import java.io.File;

/**
 *  Store the paths for generated gramar java files and class files and grammar name
 * @author daniel
 */
public class Proprietati {
    /*public static String antlrPath = "G:\\licenta\\antlr-3.4-complete.jar";
    public static String outputJava = "C:\\Users\\daniel\\AppData\\Local\\Temp\\outputJava";
    public static String OutputClass = "C:\\Users\\daniel\\AppData\\Local\\Temp\\outputJava";
    public static String classLoaderRoot = "C:\\Users\\daniel\\AppData\\Local\\Temp\\outputJava";
    public static String grammarFile;
    public static String templateFile = "G:\\workspace\\FindAntlrRules\\src\\templateFile.txt";
}*/
    public static String tempFile = System.getProperty("java.io.tmpdir");  
    public static String antlrPath = "G:\\licenta\\antlr-3.4-complete.jar";
    public static String outputJava = tempFile + "outputJava\\generate";
    public static long number= System.currentTimeMillis();
    public static String tempModGrammars = tempFile + "outputJava\\modGrammar"+number;
    public static String modGrammarOut = tempModGrammars+"\\generateGrammar";
    public static String genJavaOut = tempModGrammars+"\\generateJavas";
    public static String OutputClass = tempFile + "outputJava\\generate";
    public static String classLoaderRoot = tempFile + "outputJava";
    public static String grammarFile;
    public static String templateFile = "G:\\workspace\\TreeLicenta\\src\\templateFile.txt";
    public static String javac = "\"C:\\Program Files\\Java\\jdk1.6.0_27\\bin\\javac\"";
    public static String javaJar = "\"C:\\Program Files\\Java\\jdk1.6.0_27\\bin\\jar.exe\"";
    public static String thisjar = "\"G:\\workspace\\autoASTCons.jar\"";
    
    static {
    	File temp = new File (tempModGrammars);
    	if (!temp.exists()){
    		temp.mkdir();
    		File f = new File(tempModGrammars+"\\generateGrammar");
    		if (!f.exists()){
        		f.mkdir();
    		}
    	}
    }
}
